package com.fifth.apartment.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 公寓信息表
 * </p>
 *
 * @author author
 * @since 2024-07-11
 */
@Data
@Schema(description = "公寓信息表")
@TableName("building_info")
@ApiModel(value="BuildingInfo对象", description="公寓信息表")
public class BuildingInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "公寓信息表")
    @ApiModelProperty(value = "公寓id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "公寓信息表")
    @ApiModelProperty(value = "公寓名称")
    @TableField("name")
    private String name;

    @Schema(description = "公寓信息表")
    @ApiModelProperty(value = "详细地址")
    @TableField("address_detail")
    private String addressDetail;

    @Schema(description = "公寓信息表")
    @ApiModelProperty(value = "公寓前台电话")
    @TableField("phone")
    private String phone;

    @Schema(description = "是否发布")
    @TableField(value = "is_release")
    private String isRelease;

    @Schema(description = "公寓信息表")
    @ApiModelProperty(value = "创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value="create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @Schema(description = "公寓信息表")
    @ApiModelProperty(value = "更新时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value="update_time",fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @Schema(description = "公寓信息表")
    @ApiModelProperty(value = "是否删除")
    @TableField("is_deleted")
    private Integer isDeleted;


}
